package com.shop.service.impl;

import com.shop.mapper.Pms_Spu_Desc_Mapper;
import com.shop.pojo.pms.Pms_Spu_Info_Desc;
import com.shop.service.Pms_Spu_Desc_Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class Pms_Spu_Desc_ServiceImpl implements Pms_Spu_Desc_Service {
    @Autowired
    private Pms_Spu_Desc_Mapper pms_spu_desc_mapper;

    public Pms_Spu_Info_Desc getById(Long spuId) {
        return pms_spu_desc_mapper.selectById(spuId);
    }

    @Override
    public void saveSpuInfoDesc(Pms_Spu_Info_Desc pms_spu_info_desc) {
        //添加spu的描述信息
        pms_spu_desc_mapper.insert(pms_spu_info_desc);
    }
}
